package com.conn;

public class GlobalData {
    public static final int WRITE_BYTES = 1024;
    public static final int MESSAGE_POOL_SIZE = 1024;

    public static final String getServerIp() {
        return "127.0.0.1";
    }
    public static final int getServerPort() {
        return 5000;
    }
    public static final String getStorePath() {
        return "./store";//maybe instead of java separtor for complain with windows
    }

}

enum ErrorObject {
    USERNAME_DUPLICATE(-1, "用户名不允许重复!"),
    KEYITEM_EMPTY(-2, "关键字段不允许为空！");

    private int idcode;
    private String detail;

    ErrorObject(int idcode, String detail) {
        this.idcode = idcode;   
        this.detail = detail;   
    }
}
